package com.company.nuwa.mybatis.config;//package com.company.mybatis.config;
//
//import com.company.mybatis.MybatisInterceptor;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.ibatis.session.Configuration;
//import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Import;
//
///**
// * <p>description</p >
// *
// * @author Trump
// * @version 1.0
// * @date 2020/05/25 18:03
// */
//@Import(MybatisInterceptor.class)
//@Slf4j
//public class MybatisAutoConfiguration {
//
//
//    @Autowired
//    private MybatisInterceptor mybatisInterceptor;
//
//
//    @Bean
//    public ConfigurationCustomizer configurationCustomizer() {
//        log.info("start config mybatis plugins ");
//        return new ConfigurationCustomizer() {
//            @Override
//            public void customize(Configuration configuration) {
//                configuration.addInterceptor(mybatisInterceptor);
//            }
//        };
//    }
//
//
//
//}
